// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import App from "./App";
import router from "./router";
import store from './store'   //vuex

//modules
import iView from "iview"; //iview模块
import Vuerify from "vuerify"; //vuerify表单验证
import iviewArea from "iview-area"; //集联组件

//styles
import "iview/dist/styles/iview.css"; //iview样式
import "./assets/public/selftheme.less"; //自定义主题
import "./assets/public/reset.css"; //初始化默认样式

Vue.use(iView);
Vue.use(Vuerify);
Vue.use(iviewArea);

Vue.config.productionTip = false;

router.afterEach(to => {
    window.scrollTo(0, 0);
});
/* eslint-disable no-new */
new Vue({
    el: "#app",
    router,
    store,
    components: { App },
    template: "<App/>"
});
